package com.zero.common.core.utils;

import com.zero.common.core.domain.page.PageDomain;
import com.zero.common.core.domain.page.TableSupport;

/**
 * 分页工具类
 * 
 * @author ruoyi
 */
public class PageUtils
{
    /**
     * 设置请求分页数据
     */
    public static PageDomain startPage() {
        PageDomain pageDomain = TableSupport.buildPageRequest();
//        Integer pageNum = pageDomain.getPageNum();
//        Integer pageSize = pageDomain.getPageSize();
//        String orderBy = SqlUtil.escapeOrderBySql(pageDomain.getOrderBy());
//        Boolean reasonable = pageDomain.getReasonable();
        return pageDomain;
//        PageHelper.startPage(pageNum, pageSize, orderBy).setReasonable(reasonable);
    }

    /**
     * 清理分页的线程变量
     */
    public static void clearPage() {
//        PageHelper.clearPage();
    }
}
